package com.itheima.Demo01.demo01;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Test04 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("D:\\soft\\day0610-code\\day0628-code\\a.txt");
        FileWriter fw = new FileWriter("D:\\soft\\day0610-code\\day0628-code\\src\\com\\itheima\\Demo01\\demo01\\b.txt");
        int a;
        char[] c = new char[1024];
        while ((a=fr.read(c))!=-1){
            fw.write(c,0,a);
        }
        fr.close();
        fw.close();
    }
}
